package com.sky.manager.impl;

import com.sky.entity.Employee;
import com.sky.manager.EmployeeManager;
import com.sky.mapper.EmployeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author 小林
 * Create on 2024/4/7 19:34
 */
@Component
public class EmployeeManagerImpl implements EmployeeManager {
    @Autowired
    private EmployeeMapper employeeMapper;


    /**
     * 根据用户名查询
     * @param username
     * @return
     */
    @Override
    public Employee getByUsername(String username) {
        return employeeMapper.getByUsername(username);
    }


}
